import { ref, computed } from "vue";
export function useTogglePicker(currentFlag) {
  const showPicker = ref(false);
  

 

  const isFirst = computed(() => {
    return currentFlag.value === "first";
  });

  function togglePicker(flag) {
    showPicker.value = true;
    currentFlag.value = flag;
  }
  return {
    showPicker,
    isFirst,
    togglePicker,
  };
}
